package zjw.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TableMapper {
	@Select("select table_name from information_schema.tables where table_schema='auslese' and table_name like 'im%'")
	List<String> gettable();
	
	@Select("select column_name from information_schema.COLUMNS where table_name = #{name} and  table_schema='auslese' ")
	List<String> getColumnName(String name);
	@Select("select table_name from information_schema.tables where table_schema='auslese' and table_name = 'im%'")
	List<String> getTable();
}
